package com.lhd.creational.singleton.demo02;

/**
 * @Author: liuhd
 * @Date: 2024/10/19 16:51
 * @Description:
 */
public class Singleton {
    private static Singleton singleton;

    static {
        singleton = new Singleton();
    }

    private Singleton(){}

    public static Singleton getInstance(){
        return singleton;
    }
}
